package com.example.mypc.mystickylistview;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.widget.ImageView;

import java.io.IOException;

import okhttp3.Call;
import okhttp3.Callback;
import okhttp3.OkHttpClient;
import okhttp3.Request;
import okhttp3.Response;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        final ImageView iv= (ImageView) findViewById(R.id.iv);
//        ScaleAnimation animation=new ScaleAnimation(1f,0.3f,1f,0.3f,0.5f,0.5f);
//        animation.setDuration(2000);
////        animation.setRepeatCount(0);
////        animation.setFillAfter(true);
//        iv.startAnimation(animation);
        OkHttpClient client=new OkHttpClient();
        Request build = new Request.Builder().url("").build();
        Call call = client.newCall(build);
        call.enqueue(new Callback() {
            @Override
            public void onFailure(Call call, IOException e) {

            }

            @Override
            public void onResponse(Call call, Response response) throws IOException {

            }
        });
    }
}
